CHALLENGE 7: Solve the python arithmetic! Be careful of data types!

When we do math with floats and integers, we get different results. When we do an operation with a float and an integer, we get a float back. When we do an operation with the same types, we get the same type back.

In Python, * means multiplication, - means subtraction, and + means addition.

  • Click Run and answer 3 problems correctly to move on!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)